<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs2.jsp" %>
<fmt:message key="menu_bulletin_label1" var="menu_bulletin_label1"/>
<c:if test="${!empty bulletins_catalogy_dict}">
<form id="queryform_menu" name="queryform_menu" method="post" action="<c:url value="/modules/bulletin/bulletins.do?method=list" />">
<INPUT type="hidden" name="search_catalogy_s_eq">
</form>
<br/>
<TABLE class=leftColumnModuleHead cellSpacing=0 cellPadding=0 
  width="100%" border=0 valign="top">
  <TBODY>
  <TR>
    <TH class="menu_title_left" width=48>&nbsp;</TH>
      <TH class="menu_title_middle">${menu_bulletin_label1}</TH>
    <th width="48" align="right" class="menu_title_right"></th></TR></TBODY></TABLE>
<TABLE class=subMenu cellSpacing=0 cellPadding=0 width="100%" border=0>
	<TBODY>	
	<c:set var="bulletinCount" value="0"/>
	<c:forTokens items="${bulletins_catalogy_dict}" delims="/" var="token">
	  <TR>
	    <TD class=subMenuTDIcon 
	    style="BACKGROUND-IMAGE: url(../../themes/${sessionScope.loginUser.theme}/images/createBg.gif); BACKGROUND-REPEAT: repeat-y" 
	    width=16><A class=subMenuLink 
	      onmouseover="document.getElementById('submenu_bulletin${bulletinCount}').style.background='#f2f4fb';" 
	      onmouseout="document.getElementById('submenu_bulletin${bulletinCount}').style.background='#ffffff';" 
	      onclick="document.queryform_menu.search_catalogy_s_eq.value='${token}';document.queryform_menu.submit();"
	      href="#"><IMG 
	      height=16 alt="${token}" 
	      src="../../themes/${sessionScope.loginUser.theme}/images/announce.gif" 
	      width=16 align=absMiddle border=0></A></TD>
	    <TD class=subMenuTD id=submenu_bulletin${bulletinCount} 
	    onmouseover="this.style.background='#f2f4fb';this.style.cursor='hand';" 
	    onmouseout="this.style.background='#ffffff';this.style.cursor='auto';" 
	    noWrap>&nbsp;<A class=subMenuLink 
	      onclick="document.queryform_menu.search_catalogy_s_eq.value='${token}';document.queryform_menu.submit();"
	      href="#">${fn:length(token)>10?(fn:substring(token,0,10)):token}</A></TD></TR>	
	<c:set var="bulletinCount" value="${bulletinCount + 1}"/>
	</c:forTokens>
	</TBODY>
</TABLE>
</c:if>

<script>

jQuery(function(){   
     <c:if test="${cookie.bulletin_toggle.value=='hide'|| param.method=='showPanel' || param.fromPage == 'true'}">
      hideTogole();  //如果cookie记录是收缩状态或者是进入首页，都隐藏起来
     </c:if> 
     jQuery.get('<c:url value="/modules/bulletin/bulletins.do?method=showToAuditCount"/>&t='+new Date(), {test:"aaa"}, 
      function(response, textStatus){
       this;
       if(response>0)
       {
       jQuery("#submenu581").append('<span style="color:red;font-size:12">('+response+')</span>');
       }
      } );
    
});
function toggleMenu(){
  if(jQuery('#leftmenu').css('display')=='none')
		{
			showTogole();
			
		}
		else
		{		   
			hideTogole();
			
		}
}

function showTogole()
{
    jQuery('#leftmenu').show();
	jQuery('#togglebtn').attr("src","../../themes/${sessionScope.loginUser.theme}/skin/${sessionScope.loginUser.themePath}/images/toggle_bar_left.gif");
    Set_Cookie("bulletin_toggle", 'show', false, false, false, false);
}

function hideTogole()
{
    jQuery('#leftmenu').hide();
	jQuery('#togglebtn').attr("src","../../themes/${sessionScope.loginUser.theme}/skin/${sessionScope.loginUser.themePath}/images/toggle_bar_right.gif");
	Set_Cookie("bulletin_toggle", 'hide', false, false, false, false);
    
}
</script>